mod reader;
pub mod chunk;

use std::io::Read;

pub fn undump<R: Read>(data: R) -> chunk::Prototype {
    let mut r = reader::Reader::new(data);
    r.check_header();
    r.read_byte();
    
    r.read_proto(String::new())
}